package Bao;

import java.sql.Connection;
import java.sql.DriverManager;

public class Lj {
    public static Connection getConntion()throws Exception{
        Class.forName("org.sqlite.JDBC");
        Connection con=DriverManager.getConnection("jdbc:sqlite:D:\\cf.db");
        return con;
    }
    public static void closeconnection(Connection conn)throws Exception{
        if(conn!=null){
            conn.close();
        }
    }
}
